<link rel="stylesheet" href="css/receiveStands/caseSources.css">
<!--最大父级-->
<div class="caseSources clearfix" ui-view>
    <div class="y-content-box clearfix" style="margin-top: 10px; position: relative; margin-left:20px;overflow: hidden;">

      <!--左边menu-->
      <div class="y-content2-lawyerq fl wt-scroll caseSources-sidebar" style="background: #fff;">
        <div id="caseSources-nav" ng-show="refreshDateS">
          上次更新时间（{{refreshDateT}}），点击 <span style="color:blue;"ng-click="refreshDateC()">刷新</span>获取最新案源
        </div>
        <p class="caseSources-sidebar-title"><img src="img/d_collect.svg" alt=""> 服务项</p>
        <ul class="caseSources-sidebar-content" >
          <li ng-repeat="list in caseSourceList" ng-click="getServiceList(list.key)"><span ng-class={caseSsSidebarBorder:list.key==serviceType}></span>{{list.value}}</li>
        </ul>
      </div><!-- menu end-->
      <!--右边 menu-->
      <div class="d-g-auto caseSources-rightCon" >
        <!--展示面板 start-->
        <div class="caseSources-content wt-scroll" scroll-top="scrol"><!-- ng-show="!caseSourcesParticulars"-->
          <!--头部筛选 start-->
          <div class="caseSources-content-title">
            <div class="caseSources-con-classify clearfix" ng-show="!caseSouConClassify">
              <p>筛选类型：</p>
              <ul class="clearfix">
                <li ng-class={'businesspitch':!businessScreenCon} ng-click="businessScreenAll()">全部</li>
                <li ng-class={'businesspitch':ch.code==businessScreenCon} ng-repeat="ch in businessList" ng-click="businessScreen(ch.code)">{{ch.name}}</li>
                <li ng-click="caseSouConClassifyToggle()">更多</li>
              </ul>
            </div>
            <div class="caseSources-content-classify clearfix" ng-show="caseSouConClassify">
              <p class="fl">筛选类型：</p>
              <div class="fl">
                <p  ng-click="addBusinessListAll(businessListClassify)" ><span class="c-classify-checkbox" ng-class={cCheckboxActive:AllBoxActive}><img src="img/d_tick.svg" alt=""></span>全部</p>
                <div class="clearfix">
                  <p ng-repeat="checkbox in businessListClassify track by $index" ng-click="addBusinessList(checkbox)"><span class="c-classify-checkbox" ng-class={cCheckboxActive:checkbox.status==0}><img src="img/d_tick.svg" alt=""></span>{{checkbox.name}}</p>
                </div>
                <div class="caseSou-con-ifyBottom"><button class="d-sou-btn d-sou-btn-s" ng-click="addBusinessSubmit()">确定</button><button class="d-sou-btn d-sou-btn-e" ng-click="addBusinessCancel()">取消</button></div>
              </div>
            </div>
          </div>
          <!--头部筛选 end-->
          <!--案源内容 start-->
          <div class="caseSources-case-word">
            <div class="caseSources-word-top">
              <div class="caseSources-word-nav clearfix">
                <span class="fl">状态筛选：</span>
                <ul>
                  <li ng-class={'caseS-active':businessAnswerScreen==''} ng-click="businessAnswerAll()">全部</li>
                  <li ng-class={'caseS-active':businessAnswerScreen==1} ng-click="businessAnswerAll(1)">待解答</li>
                  <li ng-class={'caseS-active':businessAnswerScreen==2} ng-click="businessAnswerAll(2)">已解答</li>
                </ul>
              </div>
            </div>

            <div class="caseSources-word-con ">
              <ul>
                <li class="clearfix" ng-repeat="caseContent in caseSourceContent | filter:{businesstype:businessScreenCon}|filter:{status:businessAnswerScreen} track by $index" style="cursor:pointer;"ng-click="skipBillDetails(caseContent.id,caseContent.serviceid)">
                  <p><span class="con-title">{{caseContent.servicetypename}}</span> <span class="con-issueTime">发布时间：<span>{{caseContent.createddate}}</span></span> <span class="con-details">详情 <i class="iconfont">&#xe69b;</i></span></p>
                  <div class="c-con-content clearfix">
                    <p class="fl">{{caseContent.consultcontent}}</p>
                    <div class="con-btn-b" >
                      <button class="d-sou-btn d-sou-btn-j" ng-class={'caseSIEnd':caseContent.status==2} ng-disabled="caseContent.status==2" ng-show="caseContent.servicetype!=2" ng-click="caseBillAff(caseContent.id,$event)">{{caseContent.servicetype==1?'我要解答':'我要接单'}}</button>
                      <span class="caseSIndentEnd" ng-show="caseContent.status==2" ng-click="$event.stopPropagation()"></span>
                      <p ng-show="caseContent.servicetype==2"  ng-click="caseContent.status==2?$event.stopPropagation():caseBillAff(caseContent.id,$event)" style="cursor:pointer;">
                        <span ng-class={'caseSIEnd':caseContent.status==2} class="caseSoPhone"> <i class="iconfont">&#xe69d;</i></span>
                        <span class="caseSoText" ng-class={'caseSIEnd':caseContent.status==2}>我要接单</span>
                      </p>
                    </div>
                  </div>
                </li>
              </ul>
              <!--<div class="caseSources-seeMore">
                查看更多 <i class="iconfont">&#xe68b;</i>
              </div>-->
              <div class="pagingBox" ng-show="pageSetting.totalItems > 10">
                <div class="ssqPagingSimple">
                  <ul uib-pagination total-items="pageSetting.totalItems" ng-model="pageSetting.pageNum" items-per-page="pageSetting.pageSize" class="pagination-sm" boundary-link-numbers="true" ng-change="getServiceListPag()" max-size="10" previous-text="上一页" next-text="下一页" ></ul>
                </div>
              </div>
            </div>

          </div>
          <!--案源内容 end-->
          <div id="fanhuitop" scroll-top="fh" style="position: absolute;right:50px;bottom:0;display: none;">返回顶部</div>
        </div>
        <!--展示面板 end-->
      </div>
      <!--右边 menu end-->
    </div>
  </div>

<!--最大的父级-->
<script>
  $(window).ready(function () {

    /*设置屏幕高度*/
    setHeight();
    function setHeight() {
      var minHeight = $(window).height()-130 + 'px';
      var maxHeight = $(window).height()-130 + 'px';
      var maxWidth = $('.y-content-box').width()-270+'px';
      $(".y-content-box").css("height",minHeight);
      $(".caseSources-rightCon").css("height",maxHeight);
      $('#caseSources-nav').css('width',maxWidth);
    };
    $(window).resize(function() {
      setHeight();
    });
   /* $("#fanhuitop").click(function(){
      $(".caseSources-content").scrollTop(0);
    });*/
   document.onmousemove=function(){
     return false;
   }
  })
</script>
